<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Services\JsonResponseService;
use Illuminate\Http\Request;
use App\Http\Server\IndexServer;

class IndexController extends Controller
{
    //统计
    public function __construct() {
        $this->server = new IndexServer();
    }
    //进货统计分析
    public function getRestockInfo(Request $request)
    {
        $params = $request->only(['start_time','end_time']);
        $res = $this->server->getRestockInfoServer($params);
        return JsonResponseService::success($res['data'],$res['msg'],$res['status']);
    }
}
